package com.zsh.boot.controller;

import com.zsh.boot.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zsh
 * @Description
 * @create 2022-02-18 16:21
 */

@RestController
public class HelloController {

    @Resource
    private Person person;

    @RequestMapping("/person")
    public Person person(){
        return person;
    }
}
